import request from '@/utils/request'

const api = {
        apipath: '/gwmb'
    }
    // 获取公文模板类别
export function getMblbList(params) {
    return request({
        url: api.apipath + '/mblb/list',
        method: 'get',
        params: params
    })
}
// 获取公文模板详情信息
export function getInfo(unid) {
    return request({
        url: api.apipath + '/' + unid,
        method: 'get'
    })
}
// 获取公文模板数据
export function getList(params) {
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params: params
    })
}
//   保存公文模板
export function saveInfo(params) {
    return request({
        url: api.apipath,
        method: 'post',
        data: params
    })
}
// 删除公文模板
export function deleteInfo(params) {
    return request({
        url: api.apipath,
        method: 'delete',
        params: params
    })
}

export const gwmbExport = api.apipath + '/export'